<div class="row row-offcanvas row-offcanvas-right">

			<div class="col-xs-12 col-sm-9">
				<p class="pull-right visible-xs">
					<button type="button" class="btn btn-primary btn-xs"
						data-toggle="offcanvas">Toggle nav</button>
				</p>
				

				<div class="panel panel-primary">
					<div class="panel-heading">
						<h3 class="panel-title">Blogs Management<a style="margin-left:10px;" href="/blogs/save" class="btn btn-success">Add new</a></h3>
						<p><?php echo __('test'); ?></p>
					</div>
					<div class="panel-body">
						<form action="/blogs/index" method="get" id="frmSearch">
						<div class="panel panel-default">
						  <div class="panel-body">
						    <div class="col-lg-12">
								
									
								    <div class="input-group">
								      <input type="text" class="form-control" name="keyword" value="<?php echo (isset($_REQUEST['keyword']) && $_REQUEST['keyword']!='') ? $_REQUEST['keyword'] :''; ?>" placeholder="Enter keyword..."/>
								      <span class="input-group-btn">
								        <input class="btn btn-default" type="submit" value="Search" name="submit" id="btnSearch"/>
								      </span>
								    </div><!-- /input-group -->
							</div><!-- /.col-lg-6 -->
							<br/>
						  </div>
						</div>
												
						
						<div class="col-lg-12 table-responsive">
							
						  <table class="table table-striped table-bordered table-hover">
						  	<thead>
					          <tr>
					            <th><?php echo $this->Paginator->sort('id','ID'); ?></th>
					            <th><?php echo $this->Paginator->sort('title','TITLE'); ?></th>
					            <th>Image</th>
					            <th><?php echo $this->Paginator->sort('created_date','Created date'); ?></th>
					            <th>Options</th>
					          </tr>
					        </thead>
					        <tbody>
					        <?php $i=1;?>
					        <?php if(isset($blogs) && count($blogs)>0){ ?>
					        	<?php foreach($blogs as $blog){ ?>
					        		<tr>
							            <td><?php echo $i++; ?></td>
							            <td><?php echo $blog['Blog']['title'];?></td>
							            <td><img src="/thumb/?file=images/test.jpg&sizex=100&sizey=100" alt="test"/></td>
							            <td><?php echo date('d-m-Y',strtotime($blog['Blog']['created_date']));?></td>
							            <td>
							            	<a href="/blogs/save/<?php echo $blog['Blog']['id']; ?>">Edit</a>
							            	<a href="/blogs/delete/<?php echo $blog['Blog']['id']; ?>">Delete</a>
							            </td>
							          </tr>
					        	<?php }?>
					        <?php } ?>
					          </tbody>
						  </table>
						  <ul class="pagination">
						  	<?php $this->Paginator->options(array('url' => array('keyword'=>$_GET['keyword']))); ?>
							  <li><?php echo $this->Paginator->prev('Previous', null, null, array('class' => 'disabled')); ?></li>
							  <li><?php echo $this->Paginator->numbers(array('before ' => null,'after'=>null,'separator'=>'')); ?></li>
							  <li><?php echo $this->Paginator->next('Next', null, null, array('class' => 'disabled')); ?></li>
							</ul>
						</div>
						</form>
												

					</div>
				</div>
				
			</div>
			<!--/span-->

			<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"
				role="navigation">
				<?php include 'includes/categories.php'; ?>
				<div class="panel panel-default">
					<div class="panel-heading">
						<h3 class="panel-title">Panel title</h3>
					</div>
					<div class="panel-body">
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>
						<div class="media">
							<a href="#" class="pull-left"> <img alt="64x64"
								data-src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg"
								class="media-object img-responsive"
								style="width: 64px; height: 64px;"
								src="images/Natural-Image-HD-Wallpapers1-1024x768.jpg">
							</a>
							<div class="media-body">
								<h4 class="media-heading">Media heading</h4>
								Cras sit amet nibh libero, in gravida nulla. Nulla vel metus
								scelerisque ante sollicitudin commodo.
							</div>
						</div>

					</div>
				</div>

				<?php include 'includes/fanpage_facebook.php'; ?>
			</div>

			<!--/span-->
		</div>
		<!--/row-->